import request from '@/utils/request'

const getsugglistAPI = ({ keyword }) => {
  return request({
    method: 'get',
    url: '/v1_0/suggestion',
    params: {
      q: keyword
    }
  })
}

const searchResultListAPI = ({ keyword, page = 1 }) => {
  return request({
    url: '/v1_0/search',
    params: {
      q: keyword,
      page
    }
  })
}
export { getsugglistAPI, searchResultListAPI }
